package com.arellomobile.android.push;

import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.arellomobile.android.push.utils.PreferenceUtils;

public abstract class BasePushMessageReceiver extends BroadcastReceiver
{
  public static final String JSON_DATA_KEY = "pw_data_json_string";

  protected abstract void onMessageReceive(Intent paramIntent);

  public void onReceive(Context paramContext, Intent paramIntent)
  {
    ((NotificationManager)paramContext.getSystemService("notification")).cancel(PreferenceUtils.getMessageId(paramContext));
    new PushManager(paramContext).sendPushStat(paramContext, paramIntent.getExtras().getString("p"));
    onMessageReceive(paramIntent);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.arellomobile.android.push.BasePushMessageReceiver
 * JD-Core Version:    0.6.2
 */